package com.dao.pi; 

import com.model.pi.WwytModel; 
import java.sql.SQLException;
import java.util.List; 
import java.util.Map; 
import org.apache.ibatis.annotations.Param; 
import org.springframework.stereotype.Repository;

@Repository("piWwytDao")
public interface WwytDao  { 

	/**
	 * 新增
	 * 
	 * @author chenjun
	 * @date 2022/03/10
	 **/
	int insert(WwytModel wwytModel);

	
	int deleteByIndexCode(String indexCode);
	
	List<WwytModel> selectByIndexCode(String indexCode);
	int deleteByCreateTime(String createTime);
	
	List<WwytModel> selectByCreateTime(String createTime);
	
	/**
	 * 刪除
	 * 
	 * @author chenjun
	 * @date 2022/03/10
	 **/
	int delete(@Param("indexCode")String indexCode,@Param("createTime")String createTime);

	/**
	 * 更新
	 * 
	 * @author chenjun
	 * @date 2022/03/10
	 **/
	int update(WwytModel wwytModel);

	/**
	 * 查询 根据主键 id 查询
	 * 
	 * @author chenjun
	 * @date 2022/03/10
	 **/
	WwytModel load(@Param("indexCode")String indexCode,@Param("createTime")String createTime);


	// 列表
	List<WwytModel> selectList(Map<String, Object> map);

	// 列表总数
	int selectListCount(Map<String, Object> map);
 }